package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.vo.UserEcologyUsableUpperLimitPageVO;
import com.sc.nft.entity.vo.ecology.AdminuserEcologyUsableAmountUpperLimitDetailPageVO;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.UserEcologyUsableAmountUpperLimitDetail;
import com.sc.nft.mapper.UserEcologyUsableAmountUpperLimitDetailMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 生态-用户燃料可释放额度记录详情表(sc_user_ecology_usable_amount_upper_limit_detail)数据DAO
 *
 * @author Sun
 * @since 2024-03-12 16:48:49
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@Repository
public class UserEcologyUsableAmountUpperLimitDetailDao extends ServiceImpl<UserEcologyUsableAmountUpperLimitDetailMapper, UserEcologyUsableAmountUpperLimitDetail> {

    public Page<UserEcologyUsableUpperLimitPageVO> userEcologyUsableUpperLimitPage(Long userId, Integer pageNo, Integer pageSize) {
        return baseMapper.userEcologyUsableUpperLimitPage(new Page<>(pageNo, pageSize), userId);
    }

    public Page<AdminuserEcologyUsableAmountUpperLimitDetailPageVO> userEcologyUsableAmountUpperLimitDetailPage(Page page, Long userId, Date startTime, Date endTime) {
        return baseMapper.userEcologyUsableAmountUpperLimitDetailPage(page, userId, startTime, endTime);
    }
}